// 引入router
import {createRouter, createWebHistory} from 'vue-router'


const routes = [
    {
        path:'/',
        redirect:'/login'
    },
    {
        path: '/login',
        name: 'login',
        title: '登录',
        component: () => import('../views/login/login.vue'),
    },
    {
        path: '/search',
        name: 'search',
        title: '登录',
        component: () => import('../views/search/search.vue'),
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
  })
export default router